<?php
	if(!extension_loaded('Twitter'))
	{
		die('skip: Twitter extension not loaded');
	}

	if(defined('TWITTER_REQUIRE_AUTHENTICATION'))
	{
		include('configuration.inc');

		if(empty($configuration['login']) || empty($configuration['password']))
		{
			die('skip: The Twitter configuration file must contain a login for this test to work');
		}
	}

	if(defined('TWITTER_REQUIRE_DEBUG'))
	{
		if(!defined('Twitter::DEBUG'))
		{
			die('skip: This test requires the Twitter extension to be compiled with --enable-twitter-debug');
		}
	}
?>